from main import *

while True:
    WLAN = WLAN_Connect(config("SSID"),config("Pass"))
    if WLAN != False:
        break
while True:
    try:
        T = Tree_Connect(config("IP"), int(config("Port")), config("User"), config("Key"))
        if T != False:
            break
    except:
        pass
